function route(handler, pathname, res){
    console.log("About to route '%s'.", pathname);

    if(typeof handler[pathname] == 'function'){
        handler[pathname](res);
    }else{
        handler['__NotFound'](res);
    }
}

exports.route = route;